/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package interpretadorportugolvisual.partes;

import java.awt.Polygon;

/**
 *
 * @author abraaoisvioliveirasouzadocarmo
 */
public class SetaLeEntrada extends Seta {


    public SetaLeEntrada(int x, int y) {
        super(x,y);
    }

    public Polygon createPolygon(int x, int y, int mult) {
        Polygon poly = new Polygon();

        poly.addPoint(mult * 0 + x, mult * 0 + y);//PONTA
        poly.addPoint(mult * -3 + x, mult * 5 + y);
        poly.addPoint(mult * -1 + x, mult * 5 + y);
        poly.addPoint(mult * -1 + x, mult * 25 + y);
        poly.addPoint(mult * 1 + x, mult * 25 + y);
        poly.addPoint(mult * 1 + x, mult * 5 + y);
        poly.addPoint(mult * 3 + x, mult * 5 + y);

        return poly;
    }

}
